/*
  Copyright 2009 Smart Enterprise Solution Corp.
  Email: contact@ses.vn - Website: http://www.ses.vn
  KimNgan Project.
*/
using System;
using System.Data;
using System.Configuration;
using System.Collections;

using GomMinhLongDAL;
using GomMinhLongDO;
/// <summary>
/// Summary description for cmsArticleBL
/// </summary>
namespace GomMinhLongBL 
{
    public class cmsArticleBL 
    {
    	#region Private Variables
		cmsArticleDAL objcmsArticleDAL;
		#endregion
		
        #region Public Constructors
        public cmsArticleBL()
        {
            //
            // TODO: Add constructor logic here
            //
            objcmsArticleDAL=new cmsArticleDAL();
        }
        #endregion       

        #region Public Methods
        public int Insert(cmsArticleDO objcmsArticleDO)
        {
            return objcmsArticleDAL.Insert(objcmsArticleDO);
        }

        public int Update(cmsArticleDO objcmsArticleDO)
        {
             return objcmsArticleDAL.Update(objcmsArticleDO);

        }

        public int Delete(cmsArticleDO objcmsArticleDO)
        {
             return objcmsArticleDAL.Delete(objcmsArticleDO);

        }

         public int DeleteAll()
        {
             return objcmsArticleDAL.DeleteAll();
        }

        public cmsArticleDO Select(cmsArticleDO objcmsArticleDO)
        {
            return objcmsArticleDAL.Select(objcmsArticleDO);
        }

        public ArrayList SelectAll1( )
        {
         return objcmsArticleDAL.SelectAll1();
        }

        public DataTable SelectAll()
        {
            return objcmsArticleDAL.SelectAll();
        }

        public DataTable SelectGetByParent()
        {
            return objcmsArticleDAL.SelectGetByParent();
        }
        public DataTable SelectByCategory(int id,int i)
        {
            return objcmsArticleDAL.SelectByCategory(id, i);
        }
        
        public DataTable SelectByCategoryID(int id,int n)
        {
            return objcmsArticleDAL.SelectByCategoryID(id,n);
        }
        
        public cmsArticleDO SelectTopTin()
        {
            return objcmsArticleDAL.SelectTopTin();
        }
        
        public DataTable SelectArticleHome(int id)
        {
            return objcmsArticleDAL.SelectArticleHome(id);
        }

        public DataTable ArticleGetByPage(int CategoryID, int Page, int PageSize)
        {
            return objcmsArticleDAL.ArticleGetByPage(CategoryID, Page, PageSize);
        }

        public DataTable SelectByPK(int ArticleID)
        {
            return objcmsArticleDAL.SelectByPK(ArticleID);
        }

        public DataTable SelectArticleCorrelative(int ArticleID, int CategoryID)
        {
            return objcmsArticleDAL.SelectArticleCorrelative(ArticleID, CategoryID);
        }
        public DataTable SelectByTag(string Tag)
        {
            return objcmsArticleDAL.SelectByTag(Tag);
        }
     
#endregion          
    
    }

}
